cmake_minimum_required(VERSION 3.5.1)
project(pos_generator)

find_package(Eigen3 REQUIRED)
find_package(PCL REQUIRED)
find_package(catkin REQUIRED COMPONENTS
        roscpp
        std_msgs
        nav_msgs
        wmr_msgs
        insprobe_msgs
        geometry_msgs
        )
catkin_package(
        INCLUDE_DIRS include
        LIBRARIES pos_generator
        CATKIN_DEPENDS roscpp std_msgs
)

include_directories(
        ${catkin_INCLUDE_DIRS}
        ${PROJECT_SOURCE_DIR}/include
        ${EIGEN3_INCLUDE_DIR}
        ${PCL_INCLUDE_DIRS}
)

set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS} -O3 -Wall")

add_library(pos_generator
        src/gazebo_to_pos.cpp
        src/insprobe_to_pos.cpp
        )
target_link_libraries(pos_generator
        ${catkin_LIBRARIES}
        ${PCL_LIBRARIES}
        )
